package com.wty.shop.service;

import com.wty.shop.common.ServerResponse;
import com.wty.shop.pojo.Category;

import java.util.List;

/**
 * @Author wangtengyu
 * @Create 2018-01-10-12:36
 */

public interface ICategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
